package MyGO.utils.enumerastion;
public enum DoctorType {
    OUTPATIENTDOCTOR,   // 门诊医生
    EXAMINATIONDOCTOR;  // 检查医生

    @Override
    public String toString() {
        return switch (this) {
            case OUTPATIENTDOCTOR -> "门诊医生";
            case EXAMINATIONDOCTOR -> "检查医生";
        };
    }

    public static DoctorType parseDoctorType(String doctorType) {
        return switch (doctorType) {
            case "门诊医生" -> OUTPATIENTDOCTOR;
            case "检查医生" -> EXAMINATIONDOCTOR;
            default -> null;
        };
    }
}
